/*
 * XML Type:  XVisualCriteriaSchema
 * Namespace: http://www.seedwill.com/xul/criteria
 * Java type: com.seedwill.xul.criteria.XVisualCriteriaSchema
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.criteria.impl;
/**
 * An XML XVisualCriteriaSchema(@http://www.seedwill.com/xul/criteria).
 *
 * This is a complex type.
 */
public class XVisualCriteriaSchemaImpl extends com.seedwill.xul.criteria.impl.XCriteriaSchemaImpl implements com.seedwill.xul.criteria.XVisualCriteriaSchema
{
    private static final long serialVersionUID = 1L;
    
    public XVisualCriteriaSchemaImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LABEL$0 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "label");
    private static final javax.xml.namespace.QName INPUTTYPE$2 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "inputType");
    
    
    /**
     * Gets the "label" element
     */
    public java.lang.String getLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABEL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "label" element
     */
    public org.apache.xmlbeans.XmlString xgetLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABEL$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "label" element
     */
    public boolean isSetLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABEL$0) != 0;
        }
    }
    
    /**
     * Sets the "label" element
     */
    public void setLabel(java.lang.String label)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABEL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABEL$0);
            }
            target.setStringValue(label);
        }
    }
    
    /**
     * Sets (as xml) the "label" element
     */
    public void xsetLabel(org.apache.xmlbeans.XmlString label)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABEL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LABEL$0);
            }
            target.set(label);
        }
    }
    
    /**
     * Unsets the "label" element
     */
    public void unsetLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABEL$0, 0);
        }
    }
    
    /**
     * Gets the "inputType" element
     */
    public com.seedwill.xul.criteria.XCriteriaInputType.Enum getInputType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INPUTTYPE$2, 0);
            if (target == null)
            {
                return null;
            }
            return (com.seedwill.xul.criteria.XCriteriaInputType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "inputType" element
     */
    public com.seedwill.xul.criteria.XCriteriaInputType xgetInputType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.criteria.XCriteriaInputType target = null;
            target = (com.seedwill.xul.criteria.XCriteriaInputType)get_store().find_element_user(INPUTTYPE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "inputType" element
     */
    public void setInputType(com.seedwill.xul.criteria.XCriteriaInputType.Enum inputType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INPUTTYPE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INPUTTYPE$2);
            }
            target.setEnumValue(inputType);
        }
    }
    
    /**
     * Sets (as xml) the "inputType" element
     */
    public void xsetInputType(com.seedwill.xul.criteria.XCriteriaInputType inputType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.criteria.XCriteriaInputType target = null;
            target = (com.seedwill.xul.criteria.XCriteriaInputType)get_store().find_element_user(INPUTTYPE$2, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.criteria.XCriteriaInputType)get_store().add_element_user(INPUTTYPE$2);
            }
            target.set(inputType);
        }
    }
}
